if (num == 8217) num = 146; // Fix special character
if (num > 256) return -999; // FIX THIS ?
dec += num * factor;
factor *= 16*16;
}
return dec;
}
function Dec2Hex(Decimal)
{
return Decimal.toString(16).toUpperCase();
}
// Return the text representation of a language code
function langCodeToStr(code)
{
var isoLang = new Array("aa","Afar","ab","Abkhazian","af","Afrikaans","am","Amharic","ar","Arabic","as","Assamese","ay","Aymara","az","Azerbaijani","ba","Bashkir","be","Byelorussian","bg","Bulgarian","bh","Bihari","bi","Bislama","bn","Bengali Bangla","bo","Tibetan","br","Breton","ca","Catalan","co","Corsican","cs","Czech","cy","Welsh","da","danish","de","german","dz","Bhutani","el","Greek","en","English","eo","Esperanto","es","Spanish","et","Estonian","eu","Basque","fa","Persian","fi","Finnish","fj","Fiji","fo","Faeroese","fr","French","fy","Frisian","ga","Irish","gd","Scots Gaelic","gl","Galician","gn","Guarani","gu","Gujarati","ha","Hausa","hi","Hindi","hr","Croatian","hu","Hungarian","hy","Armenian","ia","Interlingua","ie","Interlingue","ik","Inupiak","in","Indonesian","is","Icelandic","it","Italian","iw","Hebrew","ja","Japanese","ji","Yiddish","jw","Javanese","ka","Georgian","kk","Kazakh","kl","Greenlandic","km","Cambodian","kn","Kannada","ko","Korean","ks","Kashmiri","ku","Kurdish","ky","Kirghiz","la","Latin","ln","Lingala","lo","Laothian","lt","Lithuanian","lv","Latvian, Lettish","mg","Malagasy","mi","Maori","mk","Macedonian","ml","Malayalam","mn","Mongolian","mo","Moldavian","mr","Marathi","ms","Malay","mt","Maltese","my","Burmese","na","Nauru","ne","Nepali","nl","Dutch","no","Norwegian","oc","Occitan","om","(Afan), Oromo","or","Oriya","pa","Punjabi","pl","Polish","ps","Pashto, Pushto","pt","Portuguese","qu","Quechua","rm","Rhaeto-Romance","rn","Kirundi","ro","Romanian","ru","Russian","rw","Kinyarwanda","sa","Sanskrit","sd","Sindhi","sg","Sangro","sh","Serbo-Croatian","si","Singhalese","sk","Slovak","sl","Slovenian","sm","Samoan","sn","Shona","so","Somali","sq","Albanian","sr","Serbian","ss","Siswati","st","Sesotho","su","Sudanese","sv","Swedish","sw","Swahili","ta","Tamil","te","Telugu","tg","Tajik","th","Thai","ti","Tigrinya","tk","Turkmen","tl","Tagalog","tn","Setswana","to","Tonga","tr","Turkish","ts","Tsonga","tt","Tatar","tw","Twi","uk","Ukrainian","ur","Urdu","uz","Uzbek","vi","Vietnamese","vo",
html += '<OL><LI>Make sure you have a Memory Stick with '+ avSp +' free space.'
+'<LI>Connect your '+ currDevLabel +' to a USB port on your PC.'
+'<LI>Open the connection from your PSP by going to HOME, then SETTINGS, then "USB CONNECTION".'
+'<LI>This should open a window showing the root folder of your memory stick.'
+'<LI>From that window, go to the <b>MP_ROOT</b> folder, then the <b>100MNV01</b> folder. If these folders don\'t exist, create them and make sure the 100MNV01 folder is inside the MP_ROOT folder.'
+'<LI>Drag '+ ((multi_num > 0) ? 'the desired <b>.'+ oFE +'</b> and <b>.THM</b> files' : 'both the "<b>'+ oFN +'</b>" and the "<b>'+ oFN.replace(/\.[0-9a-zA-Z]+$/,".THM") +'</b>" files')
+' from the box below and drop them onto the <b>100MNV01</b> folder within your Memory Stick.'
pmTimer = setTimeout("closeMessage('"+ name +"')", 15000);
}
function closeMessage(name, skipTogglePreview)
{
if (!da.popMsg || da.popMsg.lastName != name)
return;
if (pmTimer) clearTimeout(pmTimer);
pmTimer = null;
da.popMsg.style.visibility = "hidden";
// if ((name == 'vinst' || name == 'pBatch') && !skipTogglePreview)
// {
// if(window.enablePreviewOnClose)
// toggleActive(document.Player1);
// window.enablePreviewOnClose=false;
// }
}
function splitVideo()
{
if (fileInput == "")
return;
var msg = '<B>Split into smaller parts</B><br><br>'
+'This will split the encoded video into parts of a specified size. This is useful if the movie doesn\'t fit in your memory cards and you want to keep the quality high.<br><br>'
<!--a href="#" onmouseout="closeMessage('recTime')" onmouseover="popMessage('recTime','Allows you to select start and end times for the recording. This can be useful for removing long credits from a movie.<BR><BR><b>Note:</b> To avoid audio synchronization issues, please select a start time that is a multiple of 60 seconds.')"
onmouseover="popMessage('bysiz','Allows you to modify the file size to better fit your device / memory card.<br><br><b>Higher values give better quality, but too high may not work on some devices.</b>')"
><b>Encode By Size</b></a><b>:</b> <input name="fixSize" type="text" size="5" onchange="estimateSize(this)">
MB<input id="splitTo" type="button" value=""> <input name="splitBtn" type="button" class="greenBtn" id="EZOFF" value="Split" onclick="splitVideo()" title="Split the encoded video into smaller parts"></td>
</tr-->
<tr>
<td nowrap style="font-size:11; color:DarkBlue;" title="Allows you to modify the file size to better fit your device / memory card. Higher values give better quality, but too high may not work on some devices."><b>Volume:</b> <input name="volume" type="text" size="6" onfocus="oF.volume.style.backgroundColor='#FFFFFF';" onblur="oF.volume.style.backgroundColor='#ABC0D5';"><b> % </b><!--a href="#" title="Allows you to modify the file size to better fit your device / memory card. Higher values give better quality, but too high may not work on some devices.">
<b>Encode By Size</b></a--> <b>Encode By Size:</b> <input name="fixSize" type="text" size="5" onchange="estimateSize(this)" onfocus="oF.fixSize.style.backgroundColor='#FFFFFF';" onblur="oF.fixSize.style.backgroundColor='#ABC0D5';">
onmouseover="popMessage('crop','Allows you to cut areas of the screen from the original video to better fit your device. The numbers are shown in pixels.<br><br><b>Cropping rectangle colors:</b><br> White: Device screen area<br> Green: Movie area<br> Yellow: Crop area')"
<input name="saveBtn" type="hidden" class="greenBtn" id="Button1" value="Save Settings" onclick="saveConfig()" title="Save the current settings for this device">